﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using DcsGauges.Gui.Rendering.Interfaces;
using DcsGauges.Gui.Rendering;
using DcsGauges.DataStructures;

namespace DcsGauges.Gui.Views
{
    /// <summary>
    /// Views are the topmost objects in context of Gauges. They have no parent element, always have the size URect.FullSize
    /// </summary>
    abstract class View : GuiRenderableBase
    {
        protected GuiRenderableContainer renderables                    = new GuiRenderableContainer();

        public View() : base(null, URect.Full)
        {

        }

        public void AddRenderable(IGuiRenderable renderable)
        {
            if(renderable != null)
            {
                this.renderables.Add(renderable);
            }
        }
    }
}
